import { lazy } from "react";
import {createBrowserRouter} from 'react-router-dom'
const Home = lazy(() => import('../pages/Home/Index'))
const List = lazy(() => import('../pages/List/Index'))
const router = [
    {
        path: '/',
        element: <Home />,
    }, {
        path: '/list',
        element: <List />
    }
]
export default createBrowserRouter(router)